const http = uni.$u.http

// 免费课程
// export const getFreeCourse = (data) => http.post('/course/search',data)
// 获取一级类目
// export const getFirstTypes = (data) => http.get('/course/category/getFirstCategorys',{params:data})

// 获取验证码
export const getLoginCode = (data) => http.get('/sms/sendRegisterOrLoginCaptcha',{params:data})
// 验证验证码请求
export const checkLoginCode = (data) => http.post('/u/loginByMobile',data)
// 用户名密码登录
export const  userLogin = (data) => http.post('/u/loginByJson',data)
// 获取个人信息
export const getUserInfo = (data) => http.get('/member/getInfo',{params:data})
// 退出登录
export const userLoginOut = (data) => http.get('/u/logout',{params:data})